package file;

//文件重命名

import java.io.File;
import java.io.IOException;

public class demo5 {
    public static void main(String[] args) throws IOException {
        File file = new File("./text.txt");
        File file1 = new File("./src/text.txt");
        file.renameTo(file1);
    }
}
